<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

        <title><?php echo $title;?></title>

        <?php $this->load->view('head'); ?>
    </head>
    <body style="overflow-y: hidden">
        <div id="layout">
            <div id="container" class="container_12">
                <!-- ======= .grid_12 - block begin ======= -->
                <div class="grid_6">
                    <?php if($message != '') echo '<div class="alert info_msg">'.$message.'</div>';?>
                    <div class="box">
                        <div class="title"><span class="icon16_sprite i_lock_open"></span>Login</div>
                        <div class="inside">
                            <form id="form_id1" class="formee" method="post" action="<?php echo site_url('crud/login');?>">
                                <div class="in">
                                    <div class="grid-3-12"><label><?php echo lang('email');?>: <em class="formee-req">*</em></label></div>
                                    <div class="grid-9-12">
                                        <input type="text" name="p_identity" id="p_identity" class="validate[required,custom[email]]" />
                                        <span class="subtip"><?php echo lang('ejemplo');?>: webmaster@domain.com</span>
                                    </div>
                                    <div class="clear"></div>
                                    <hr />
                                    <div class="grid-3-12"><label><?php echo lang('contrasena');?>: <em class="formee-req">*</em></label></div>
                                    <div class="grid-9-12"><input type="password" name="p_password" id="p_password" class="validate[required]"/></div>
                                    <div class="clear"></div>
                                    <hr />
                                    <div class="grid-5-12">
                                        <ul class="formee-list">
                                            <li><input name="p_remember" id="p_remember" type="checkbox" /> <label><?php echo lang('recordar_contrasena');?></label></li>
                                        </ul>
                                    </div>
                                    <div class="grid-7-12">
                                        <a href="<?php echo site_url();?>" class="button saddlebrown right"><?php echo lang('volver');?></a>
                                        <a href="<?php echo site_url('crud/registrar');?>" class="button blue right"><?php echo lang('registrarse');?></a>
                                        <input class="right button green" type="submit" value="<?php echo lang('acceder');?>"/>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <!-- ======= .grid_12 - block end ======= -->
            </div><!-- End of #container -->
        </div><!-- End of #layout -->
        <div class="clear"></div>
        <div id="footer_bar" style="position: absolute; bottom: 0px; margin-bottom: 0px">
            <div class="copyr">Copyright &copy; Pep Manel Palmer 2012</div>
        </div>		
    </body>
</html>